//
//  LMOrderDetail.h
//  WelfareManager
//
//  Created by longmin on 17/3/24.
//  Copyright © 2017年 timtian. All rights reserved.
//

#import <Realm/Realm.h>
#import "LMExpress.h"
#import "LMSunOrder.h"

@interface LMOrderDetail : RLMObject

//"order_id": "订单ID",
@property(nonatomic, strong) NSString *order_id;
//"team_id": "18",
@property(nonatomic, strong) NSString *team_id;
//"name": "收货人姓名",
@property(nonatomic, strong) NSString *name;
//"order_sn": "订单编号",
@property(nonatomic, strong) NSString *order_sn;
//"phone": "收货人手机号",
@property(nonatomic, strong) NSString *phone;
//"address": "收货人地址",
@property(nonatomic, strong) NSString *address;
//"state": "订单状态",
@property(nonatomic, strong) NSString *state;
//"total_price": "订单总金额",
@property(nonatomic, strong) NSString *total_price;
//"total_score": "订单商品总积分",
@property(nonatomic, strong) NSString *total_score;
//"store_total_price": "客户支付总价",
@property(nonatomic, strong) NSString *store_total_price;
//"member_total_price": "会员支付总价",
@property(nonatomic, strong) NSString *member_total_price;
//"create_time": "订单创建时间",
@property(nonatomic, assign) NSTimeInterval create_time;
//"pay_time": "付款时间",
@property(nonatomic, strong) NSString *pay_time;
//"mobile": "下单人手机号",
@property(nonatomic, strong) NSString *mobile;
//"state_name": "订单状态名称",
@property(nonatomic, strong) NSString *state_name;
//"store_name": "站点名称",
@property(nonatomic, strong) NSString *store_name;
//"title": "来源应用",
@property(nonatomic, strong) NSString *title;
//"balance": "账户余额",
@property(nonatomic, strong) NSString *balance;
//"userpaytime": "用户付款时间",
@property(nonatomic, assign) NSTimeInterval userpaytime;
//"sitepaytime": "站点付款时间",
@property(nonatomic, assign) NSTimeInterval sitepaytime;
//"teampaytime": "会员付款时间",
@property(nonatomic, assign) NSTimeInterval teampaytime;
//express:物流信息
@property(nonatomic, strong) LMExpress *express;
//"sonorder":[子订单
@property RLMArray <LMSunOrder *><LMSunOrder> *sonorder;

@end
